﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WeChat.Common;

namespace WeChat.ViewModel
{
    class LoginViewModel
    {
        public CommonBase CloseWindowCommand { get; set; }

        public LoginViewModel()
        {
            this.CloseWindowCommand = new CommonBase();
            this.CloseWindowCommand.DoExecute = new Action<object>((o) =>
            {
                (o as Window).Close();
            });
            this.CloseWindowCommand.DoCanExecute = new Func<object, bool>((o) => { return true; });
        }

    }
}
